home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Deutsche Edition 1
/
Deutsche Edition 1.iso
/
amok
/
071-080
/
amok75
/
oberon3.0
/
o3demo2.lzh
/
Beispiele
/
Fak.mod
< prev
next >
Wrap
Text File
|
1992-08-22
|
301b
|
19 lines
MODULE Fak;
IMPORT BI := BigIntegers, io;
VAR
i: INTEGER;
bi: BI.BigInteger;
BEGIN
bi := BI.Create(1);
FOR i:=1 TO 100 DO
io.WriteInt(i,4); io.WriteString("! =");
bi := bi.Mul(BI.Create(i))(BI.BigInteger);
io.WriteString(bi.ConvertToString()^);
io.WriteLn;
END;
END Fak.